<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<link rel="stylesheet" type="text/css"
	href="static/easyui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css"
	href="static/easyui/themes/icon.css">
<link rel="stylesheet" type="text/css" href="static/easyui/demo.css">
<link rel="stylesheet" type="text/css" href="static/css/icon.css">
<link rel="stylesheet" type="text/css" href="static/css/style_d.css">
<!-- js -->
<script type="text/javascript"
	src="static/js/common/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="static/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="static/easyui/easyloader.js"></script>
<script type="text/javascript" src="static/js/common/easyuiext.js"></script>

<!-- 
<script type="text/javascript" charset="utf-8" src="static/kindeditor/kindeditor.js"></script>
<script charset="UTF-8"  type="text/javascript" src="static//kindeditor/lang/zh_CN.js"></script>
<script charset="UTF-8" type="text/javascript"src="static/kindeditor/plugins/code/prettify.js"></script>
<link rel="stylesheet" href="static/kindeditor/plugins/code/prettify.css" type="text/css"></link>
<link rel="stylesheet" href="static/kindeditor/themes/default/default.css" type="text/css"></link>
 -->
<script>

/* var editor;
KindEditor.ready(function(K) {
        editor = K.create('#contentT');
}); */
</script>
<script>
/* 
 KindEditor.ready(function(K) {
 var editor1 = K.create('textarea[name="contentT"]', {
  cssPath : 'static/kindeditor/plugins/code/prettify.css',
  uploadJson : 'static/kindeditor/jsp/upload_json.jsp',
  fileManagerJson : 'static/kindeditor/jsp/file_manager_json.jsp',
  allowFileManager : true,
  afterCreate : function() {
   var self = this;
   K.ctrl(document, 13, function() {
    self.sync();
    document.forms['formT'].submit();
   });
   K.ctrl(self.edit.doc, 13, function() {
    self.sync();
    document.forms['formT'].submit();
   });
  }
 });

}); */
</script>

<script>
$(function() {
	

	$.getScript("static/kindeditor/kindeditor.js", function() {
			KindEditor.basePath = "static/kindeditor/";
			editor = KindEditor.create('#contentT' , {
			resizeType : 1,
			allowPreviewEmoticons : false,
			allowImageUpload : false,
			items : [
			'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
			'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
			'insertunorderedlist', '|', 'emoticons', 'image', 'link']} );
		/* 	<#if value??&&value!="">	
 			 editor.html($('#editor_value_temp_superschool').html());
 			 </#if> */
		});
});
	$(function() {

		$('.mycenter').click(function() {
			$('.onlyCenter').unbind("click");
		var href=	$(this).attr('href');
			href += '?onlyCenter=true';
			var url = href;
			$("#center").html("");
			$("#center").html("loading");

			$.ajax({
				type : "POST", //请求方式
				url : url, //请求路径
				cache : false,
				dataType : "html", //返回值类型       使用json的话也可以，但是需要在JS中编写迭代的html代码，如果格式样式
				success : function(data) {

					//复杂的话还是用html返回类型好

					$("#center").html(data);
					  $.parser.parse();

				}
			});

			return false;
		});

	});
		
	</script> 
	